package com.imooc.news_manager_project.dto;

import com.imooc.news_manager_project.common.validator.SaveValidator;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class CommentsDTO {

    @NotBlank(message = "新闻id不能为空", groups = {SaveValidator.class})
    private String newsId;
    @NotBlank(message = "评论内容不能为空", groups = {SaveValidator.class})
    private String content;

    private String parentId;


}
